/* ===========================================
   公共样式文件 - 提取重复的CSS样式
   =========================================== */

/* 基础布局样式 */
.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.center-text {
  text-align: center;
}

.button-center {
  text-align: center;
}

/* 间距样式 */
.margin-top-10 {
  margin-top: 10px;
}

.margin-top-20 {
  margin-top: 20px;
}

/* 文本样式 */
.text-cursor {
  cursor: text;
}

.link-blue {
  color: #409eff;
  cursor: pointer;
}

.center-text-gray {
  text-align: center;
  font-size: 13px;
  color: #828282;
}

.end-message-text {
  color: #999999;
  font-size: 13px;
}

/* 表单样式 */
.form span {
  color: #999999;
}

.custom-input .el-input__inner {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid #999999;
}

/* 对话框样式 */
.dialog-padding {
  padding: 10px;
}

.el-dialog--center .el-dialog__body {
  padding: 25px 25px 0;
}

/* 头像样式 */
.avatar-large {
  width: 75px;
  height: 75px;
  border-radius: 10px;
}

.postcard-avatar {
  width: 55px;
  height: 55px;
}

/* 个人信息样式 */
.personal {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-bottom: 30px;
  border-bottom: 1px solid #d9d9d9;
}

.personal .login-name {
  margin-top: 5px;
  color: #999999;
  font-size: 13px;
  width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.personal .nick-name {
  max-width: 100px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.personal .base-content {
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  color: black;
  margin-left: 10px;
}

/* 性别样式 */
.man {
  color: #409eff;
}

.woman {
  color: #f38098;
}

.gender-female {
  color: red;
}

/* 消息样式 */
.read-status-tip {
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-size: 12px;
  color: #999999;
}

/* 未读状态样式 */
.messageRead:not(.read) {
  color: #8c8c8c;
  background-color: transparent;
}

/* 已读状态样式 */
.messageRead.read {
  color: #1890ff;
  font-weight: 500;
}

/* 撤回消息样式 */
.retracted-message {
  text-align: center;
  background-color: #e9e9e9;
  width: 190px;
  border-radius: 3px;
  margin: 10px auto;
  padding: 5px;
}

/* 消息发送失败样式 */
.message-send-fail {
  background-color: #e9e9e9;
  width: 220px;
  border-radius: 3px;
  margin: 0 auto;
  padding: 10px;
}

.message-send-fail-2 {
  background-color: #e9e9e9;
  width: 410px;
  border-radius: 3px;
  margin: 0 auto;
  padding: 10px;
}

.message-send-fail-3 {
  background-color: #e9e9e9;
  width: 170px;
  border-radius: 3px;
  margin: 0 auto;
  padding: 10px;
}

.message-error {
  position: absolute;
  left: -20px;
  bottom: 0;
  font-size: 15px;
  color: #ff004f;
}

/* 浮动窗口样式 */
.float-window {
  position: absolute;
  width: 300px;
  z-index: 10;
  background-color: #fefefe;
  border: 1px solid #ccc;
  color: black;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pool-float-window {
  position: absolute;
  z-index: 11;
  background-color: #fefefe;
  border: 1px solid #ccc;
  color: black;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.details {
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.details img {
  width: 75px;
  height: 75px;
  border-radius: 5px;
}

.base {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.base .text {
  font-size: 13px;
  color: #999999;
  margin-top: 3px;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 操作按钮样式 */
.pool {
  padding: 3px 2px 3px 2px;
  display: flex;
  border-radius: 4px;
  font-size: 18px;
  color: #5e5e5e;
  margin-left: auto;
}

.pool:hover {
  cursor: pointer;
  background-color: #e1e1e1;
}

.pool-float-window .opear {
  font-size: 13px;
}

.pool-float-window .opear .detail {
  padding: 5px 30px 5px 30px;
  text-align: left;
  cursor: pointer;
}

.pool-float-window .opear .detail:hover {
  background-color: #dddddd;
}

/* 其他样式 */
.other {
  margin-top: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e1e1e1;
}

.other p {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.abnormal {
  cursor: pointer;
}

.intro {
  overflow-wrap: break-word;
  width: 100%;
  font-size: 12px;
  color: #999999;
}

/* 名片样式 */
.postcard-header {
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid #999999;
  padding-bottom: 5px;
}

.postcard-info {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
}

.postcard-type {
  font-size: 12px;
}

/* 通话消息样式 */
.call-message {
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #f5f7fa;
  display: inline-flex;
  align-items: center;
  color: #666;
}

.call-status {
  margin-left: 8px;
  font-size: 12px;
  color: #999;
}

/* 语音消息样式 */
.voice-message {
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #f5f7fa;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.voice-content {
  display: inline-flex;
  align-items: center;
  color: #666;
}

.voice-duration {
  font-size: 12px;
  margin-right: 8px;
}

/* 图片消息样式 */
.image-message {
  display: inline-block;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 文件消息样式 */
.file-message {
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #f5f7fa;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

/* 特殊效果 */
.phone-icon-rotated {
  transform: rotate(135deg);
}

/* 深度选择器样式 */
::v-deep .el-dialog__wrapper {
  top: 0;
  right: 0 !important;
}

::v-deep .my-dialog .el-dialog__wrapper {
  width: 300px !important;
}

::v-deep .form .el-form-item__label {
  line-height: 0;
}

::v-deep .info-content img {
  width: 160px;
}
